import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import UserLogin from '../views/UserLoginView.vue'
import CoachList from '../components/CoachList.vue'
import UserHot from '../components/UserHot.vue'
import UserAnalyse from '../components/UserAnalyse.vue'
import CoachAnalyse from '../components/CoachAnalyse.vue'
import Adminlist from '../components/AdminList.vue'
import Sysreset from '../components/SysReset.vue'
import UserList from '../components/UserList.vue'
import MachineHot from '../components/MachineHot.vue'
import MachineList from '../components/MachineList.vue'
import SysLog from '../components/SysLog.vue'
import IncomePage from '../components/IncomePage.vue'
import MonitorPage from '../components/MonitorPage.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/home',
    name: 'home',
    component: HomeView,
    children:[
      {
        path: '/Income',
        name: 'IncomePage',
        components:{
          mian:IncomePage
        }
      },
      {
        path: '/Monitor',
        name: 'MonitorPage',
        components:{
          mian:MonitorPage
        }
      },
       {
         path: '/SysLog',
         name: 'SysLog',
         components:{
           mian:SysLog
         },
        
      },
      {
       path: '/CoachList',
       name: 'CoachList',
       components:{
        mian: CoachList
       },
      },
    {
      path: '/UserHot',
      name: 'UserHot',
      components:{
        mian:UserHot
      },
    },
    {
      path: '/UserAnalyse',
      name: 'UserAnalyse',
      components:{
        mian:UserAnalyse
      },
    },
    {
      path: '/CoachAnalyse',
      name: 'CoachAnalyse',
      components:{
        mian:CoachAnalyse
      },
    },
    {
      path: '/adminlist',
      name: 'adminlist',
      components:{
        mian:Adminlist
      },
    },
    {
      path: '/sysreset',
      name: 'sysreset',
      components:{
        mian:Sysreset
      },
    },
    {
     path: '/userlist',
     name: 'userlist',
     components:{
       mian:UserList
     },
    },
    {
      path:'/MachineHot',
      name:'MachineHot',
      components:{
        mian:MachineHot
      }
    },
    {
      path:'/MachineList',
      name:'MachineList',
      components:{
        mian:MachineList
      }
    }
    ]
  },
  {
    path: '/',
    name: 'UserLogin',
    component:UserLogin
  }
]

const router = new VueRouter({
  routes
})

export default router
